const skyDom = document.querySelector('.sky');
skyStyle = getComputedStyle(skyDom);
const widthSky = parseFloat(skyStyle.width);
const heightSky = parseFloat(skyStyle.width);

class Sky extends Rectangle{
    constructor(){
        super(widthSky, heightSky, 0, 0, -100, 0, skyDom);
    }
    onMove(){
        if(this.x <= -widthSky / 2) {
            this.x = 0;
        }
    }
}
